#include <ros/ros.h>
#include <std_msgs/String.h>


static void handle_msgs(const std_msgs::String::ConstPtr &msg)
{
    ROS_INFO("recv %s", msg->data.c_str());
}

int main(int argc, char *argv[])
{
    setlocale(LC_ALL, "");
    ros::init(argc, argv, "demo02_sub");
    ros::NodeHandle nh;

    ros::Subscriber sub = nh.subscribe<std_msgs::String>("Hourse", 10, handle_msgs);

    ros::spin();
    return 0;
    
}